<%@ page pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="isperp" uri="/WEB-INF/tlds/isperp.tld"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@page import="itsm.isperp.framework.core.context.ContextHolder"%>


<style>
.portaltb {
	font-weight: normal;
	padding-bottom: 5px;
	color: #555;
	font-size: 12px;
	table-layout:fixed;
	width:100%;
	margin-top:10px;
}

.portaltb tr {
	height: 30px;
}

.ptd1 {
	text-overflow: ellipsis;
	-moz-text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	width:15%;
}

.ptd2 {
	text-overflow: ellipsis;
	-moz-text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	width: 40%;
}
body
{
  min-height:0px;
}
</style>

<div>
	<table class="portaltb" cellspacing="50%" cellpadding="80" >
		<tr>
			<td class="td2" rowspan="5"
				style="text-align: center;vertical-align: top;"><isperp:photoUploader
					imgName="photo" cutType="1" imgWidth="105" imgHeight="120"
					imgSrc="${model.photo}" id="photo" imgPath="users/${model.name }"
					imgFormat="png/gif/jpg" showEditBtn="false" showDescription="false"></isperp:photoUploader>
			</td>
			<td class="ptd1" align="right">账号：</td>
			<td align="left" class="ptd2" style="">${model.name }</td>

		</tr>

		<tr>

			<td class="ptd1" align="right">姓名：</td>
			<td align="left" class="ptd2">${model.fullname }</td>
		</tr>
		<tr>

			<td class="ptd1" align="right">部门：</td>
			<td align="left" class="ptd2">${model.department_name }</td>
		</tr>
		<tr>

			<td class="ptd1" align="right">手机：</td>
			<td align="left" class="ptd2">${model.mobile }</td>
		</tr>
		<tr>

			<td class="ptd1" align="right">邮箱：</td>
			<td align="left" class="ptd2">${model.email }</td>
		</tr>

		<tr>
			
			<td class="ptd2" colspan="2">&nbsp;&nbsp;
				<a href="javascript:changePersonInfo()" class="nui-txt-link">修改个人信息</a>
			</td>
		</tr>
		<tr>
			<td class="ptd2" colspan="2">&nbsp;&nbsp;
				<a href="javascript:changePassWord()" class="nui-txt-link">修改密码</a>
			</td>
		</tr>

	</table>
</div>

<script type="text/javascript">
	function changePersonInfo() {
		var tempTitle = "修改个人信息";
		var id = '${model.id}';
		var tempUrl = "app/user/personInfoEdit?id=" + id;
		var options = {
			title : tempTitle,
			contentUrl : tempUrl,
			windowSize : 'normal'
		};
		isperp.openDialog(options);
	}
	function changePassWord() {
		var tempTitle = "修改个人信息";
		var id = '${model.id}';
		var tempUrl = "app/user/passWordEdit?id=" + id;
		var options = {
			title : tempTitle,
			contentUrl : tempUrl,
			windowSize : 'normal'
		};
		isperp.openDialog(options);
	}
</script>


